##########################################################################################
# Senators at Home: Local Attentiveness and Policy Representation in Congress ############
# Jaclyn Kaslovsky                                                            ############
# American Political Science Review                                           ############
# README File                                                                 ############
##########################################################################################

This file outlines the software, code, and data used to produce the results 
presented in "Senators at Home: Local Attentiveness and Policy Representation in Congress," by Jaclyn Kaslovsky.
In order to replicate all tables from the main text, replicators should install R and run "Main Regressions.R"
In order to replicate all tables from the supplementary materials, replicators should open and run "Appendix Regressions.R"
In order to create all figures, replicators should open and run "Figures.R". 
	

##########################################################################################
	## Scripts ##
##########################################################################################

	"Main Regressions.R"
		loads in final datasets, runs regressions, and outputs all tables in the main text.

	"Appendix Regressions.R"
		loads in final datasets, runs regressions, and outputs all tables in the appendix text.

	"Figures.R"
		loads in the data and produces all figures.


##########################################################################################	
	## Data ##
##########################################################################################

	"complete_CCES_final.dta" : CCES respondent level data that creates all results regarding policy disagreement and local resources

	"resources_tocounties_final.dta": senator-county-year level data to examine how senators are allocating their resources to counties

	"resources_tomsa_final.dta": senator-msa-year level data to examine how senators are allocating their resources to MSAs

	"TotalResources_Home.dta": senator-congress level data to look at overall allocation patterns

	
Additional information about the variables included in the datasets can be found in the accompanying codebook. 



##########################################################################################	
	## Software Dependencies ##
##########################################################################################	

	All analysis originally undertaken in R version 4.1.0 "Camp Pontanzeen" on a system running
	macOS Big Sur 11.4.
	
		